Package edu.uky.ai.tic.ai
Class RandomBot
java.lang.Object
edu.uky.ai.tic.ai.RandomBot
- All Implemented Interfaces:
Bot
public class RandomBot extends java.lang.Object implements Bot
A random Tic Tac Toe bot simply chooses its next move at random from all the
available next moves.
- Author:
- Stephen G. Ware
-
Constructor Summary
Constructors Constructor Description RandomBot(long seed)Constructs a new random bot with a given random number generator seed. -
Method Summary
Modifier and Type Method Description DecisionchooseMove(State state)
-
Constructor Details
-
RandomBot
public RandomBot(long seed)Constructs a new random bot with a given random number generator seed.- Parameters:
seed- the random number generator seed
-
-
Method Details
-
chooseMove
- Specified by:
chooseMovein interfaceBot
-